<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <script>
        function fn(a,b){
            //曾经的默认传值
            a = a? a:0;
            b = b? b:0;
            return a+b
        }
        var f1 = fn(0)
        var f1 = fn(1,2)
        console.log(f1);



        

    </script>
    
</body>
</html>